package com.odt.outdoor.widget.row;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;

/**
 * Created by DELL on 2017/2/14.
 */

public class MyRecycleView extends RecyclerView {
    public MyRecycleView(Context context) {
        super(context);
    }

    public MyRecycleView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }
    @Override
    protected void onMeasure(int widthSpec, int heightSpec) {
//        int newHeightSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST);
//        super.onMeasure(widthSpec, newHeightSpec);
        super.onMeasure(widthSpec,heightSpec);
    }

//    @Override
//    public boolean onInterceptTouchEvent(MotionEvent e) {
////        return super.onInterceptTouchEvent(e);
//        return true;
//    }
//
//    @Override
//    public boolean onTouchEvent(MotionEvent e) {
//        return super.onTouchEvent(e);
//    }
}
